import baseRequest from "./request";

export function uploadImage(file: File) {
  const formData = new FormData();
  formData.append('image', file);
  
  return baseRequest({
    url: '/upload/image',
    method: 'post',
    data: formData,
    headers: {
      'Content-Type': 'multipart/form-data',
    },
  });
} 